<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/Apply-for-agent.css" />
	</head>

	<body>
		<div class="web">
			<header>
				<div class="img"><a href="product.html"><img src="img/icon_back.png"/></a></div>
				<div class="letter">
					<a href="agent-news.html"><img src="img/icon_msg.png" /></a>
				</div>
				<div class="nav">
					<span class="active"><a href="Apply-for-agent.html">申请代理</a></span>
					<span><a href="Apply-for-supplier.html">申请供应商</a></span>
				</div>
			</header>

			<div id="big">
				<div class="click">
					<p>申请代理</p>
					<form action="" method="post">
						<div class="type">
							<span>联系人</span>
							<input type="text" name="" id="" value="" placeholder="请输入联系人" />
						</div>
						<div class="type t2">
							<span>联系电话</span>
							<input type="tel" name="" id="" value="" placeholder="请输入联系人电话" />
						</div>
						<div class="type t3">
							<span>备注</span>
							<input type="tel" name="" id="" value="" placeholder="请输入联系人电话" />
						</div>
						<hr />
						<input type="button" id="submitBtn"  value="提交" />
					</form>
				</div>
			</div>
			<div id="small">
				<img src="img/smile.png"/>
				<p>申请代理提交成功!</p>
			</div>
			
			<section>
				<div class="search">
					<div class="searchBar">
						<img src="img/icon_search.png" />
						<input type="search" name="" id="" value="" />
					</div>
				</div>
				<div class="brand_name name1">
					<div class="left">
						<img src="img/p&g.jpg" />
					</div>
					<div class="right">
						<input type="button" class="b3" value="已申请" id="btn1">
					</div>
					<div class="middle">
						<p>供应商品牌名称</p>
						<div class="icon">
							<img src="img/agent_ico1.png" />
							<img src="img/agent_ico2.png" />
							<img src="img/agent_ico3.png" />
						</div>
					</div>
				</div>
				<div class="ad">
					<img src="img/ad.jpg" />
					<img src="img/ad.jpg" />
					<img src="img/ad.jpg" />
					<img src="img/ad.jpg" />
				</div>
				<div class="hr hr1">

				</div>
				<div class="brand_name name2">
					<div class="left">
						<img src="img/p&g.jpg" />
					</div>
					<div class="right">
						<input type="button" class="b1" onclick="open1()" value="申请代理" id="btn2">
					</div>

					<div class="middle">
						<p>供应商品牌名称</p>
						<div class="icon">
							<img src="img/agent_ico1.png" />
							<img src="img/agent_ico2.png" />
							<img src="img/agent_ico3.png" />
						</div>
					</div>
				</div>
				<div class="ad">
					<img src="img/ad.jpg" />
					<img src="img/ad.jpg" />
					<img src="img/ad.jpg" />
					<img src="img/ad.jpg" />
				</div>
				<div class="hr">

				</div>
				<div class="brand_name name2">
					<div class="left">
						<img src="img/p&g.jpg" />
					</div>
					<div class="right">
						<input type="button" class="b1" value="申请代理" id="btn">
					</div>
					<div class="middle">
						<p>供应商品牌名称</p>
						<div class="icon">
							<img src="img/agent_ico1.png" />
							<img src="img/agent_ico2.png" />
							<img src="img/agent_ico3.png" />
						</div>
					</div>
				</div>
				<div class="ad">
					<img src="img/ad.jpg" />
					<img src="img/ad.jpg" />
					<img src="img/ad.jpg" />
					<img src="img/ad.jpg" />
				</div>
				<div class="hr hr2">

				</div>

			</section>
		</div>
		
		<script type="text/javascript" src="js/common.js"></script>
	
		<script>
			document.body.style.height = window.innerHeight + "px";

			/*动态改变根元素字体大小*/
			function recalc() {
				var clientWidth = document.documentElement.clientWidth;
				if(!clientWidth) return;
				document.documentElement.style.fontSize = 40 * (clientWidth / 640) + 'px';
				//字体大小   =1个rem单位表示多少个像素*(设备的宽度 /设计宽度)
			}

			function initRecalc() {
				recalc();
				var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
				if(!document.addEventListener) return;
				window.addEventListener(resizeEvt, recalc, false);
				document.addEventListener('DOMContentLoaded', recalc, false);
			}
			initRecalc();
		</script>

		<script type="text/javascript">
			window.onload = function() {
				var obj = document.getElementById("btn");
				obj.onclick = function() {
					obj.className = (obj.className == "b1" ? "b2" : "b1");
					obj.value = (obj.value == "申请代理" ? "已申请" : "申请代理");
				}
			}
		</script>

	</body>

</html>